package basics.scanner.model;

import java.lang.reflect.Method;

/**
 * 将定义过的参数抽取成对象
 *
 * @author Ldanniel
 */
public class ActionEntity {
    /**
     * 注解所对应的类
     */
    private Class<?> klass;
    /**
     * 注解对应的方法
     */
    private Method method;
    /**
     * 需要执行的策略类型
     */
    private String policy;
    /**
     * 提前创建的执行对象
     */
    private Object executeMethod;

    public ActionEntity(Class<?> klass, Method method, Object executeMethod,String policy) {
        this.klass = klass;
        this.method = method;
        this.policy = policy;
        this.executeMethod = executeMethod;
    }

    public Class<?> getKlass() {
        return klass;
    }

    public void setKlass(Class<?> klass) {
        this.klass = klass;
    }

    public Method getMethod() {
        return method;
    }

    public void setMethod(Method method) {
        this.method = method;
    }

    public String getPolicy() {
        return policy;
    }

    public void setPolicy(String policy) {
        this.policy = policy;
    }

    public Object getExecuteMethod() {
        return executeMethod;
    }

    public void setExecuteMethod(Object executeMethod) {
        this.executeMethod = executeMethod;
    }
}
